<?php

namespace App\Services\Chanjet;

class TPlusInterface
{
    /**
     *
     *   授权码获取token
     *
    */
    public static function authCodeExchangeToken()
    {
        $apiUrl = "/auth/v2/getToken";
        $apiRequestType = "get";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *
     *   令牌刷新token
     *
     */
    public static function refreshToken()
    {
        $apiUrl = "/auth/v2/refreshToken";
        $apiRequestType = "get";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  仓库创建
     *
     * */
    public static function WarehouseCreate()
    {
        $apiUrl = "/tplus/api/v2/warehouse/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  仓库查询
     *
     * */
    public static function warehouseQuery()
    {
        $apiUrl = "/tplus/api/v2/warehouse/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  计量单位组新增
     *
    */
    public static function UnitGroupCreate()
    {
        $apiUrl = "/tplus/api/v2/UnitGroup/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    /**
     *  计量单位组查询
     *
     */
    public static function UnitGroupQuery()
    {
        $apiUrl = "/tplus/api/v2/UnitGroup/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    /***
     *  部门创建
     *
    */
    public static function departmentCreate()
    {
        $apiUrl = "/tplus/api/v2/department/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /***
     *  员工创建
     *
     */
    public static function personCreate()
    {
        $apiUrl = "/tplus/api/v2/person/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /***
     *  员工查询
     *
     */
    public static function personQuery()
    {
        $apiUrl = "/tplus/api/v2/person/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /***
     *  员工修改
     *
     */
    public static function personUpdate()
    {
        $apiUrl = "/tplus/api/v2/person/Update";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /***
     *  企业账套列表
     *
     */
    public static function accountAPIGetAccList()
    {
        $apiUrl = "/tplus/api/v2/accountAPI/GetAccList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  往来单位-创建
     *
     */
    public static function partnerCreate(){
        $apiUrl = "/tplus/api/v2/partner/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  往来单位-修改
     *
     */
    public static function partnerUpdate(){
        $apiUrl = "/tplus/api/v2/partner/Update";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  往来单位分类-创建
     *
     */
    public static function partnerClassCreate(){
        $apiUrl = "/tplus/api/v2/partnerClass/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  往来单位分类-查询
     *
     */
    public static function partnerClassQuery(){
        $apiUrl = "/tplus/api/v2/partnerClass/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  往来单位-查询
     *
    */
    public static function partnerQuery(){
        $apiUrl = "/tplus/api/v2/partner/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    /**
     *  存货分类新增
     *
     */
    public static function inventoryClassCreate(){
        $apiUrl = "/tplus/api/v2/inventoryClass/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  存货分类查询
     *
     */
    public static function inventoryClassQuery(){
        $apiUrl = "/tplus/api/v2/inventoryClass/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    /**
     *  存货新增
     *
    */
    public static function inventoryCreate(){
        $apiUrl = "/tplus/api/v2/inventory/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    /**
     *  存货修改
     *
     */
    public static function inventoryUpdate(){
        $apiUrl = "/tplus/api/v2/inventory/Update";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    public static function inventoryCreateBatch(){
        $apiUrl = "/tplus/api/v2/inventory/CreateBatch";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  存货查询
     *
     */
    public static function inventoryQuery(){
        $apiUrl = "/tplus/api/v2/inventory/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  存货计量单位查询
    */
    public static function inventoryUnitQuery(){
        $apiUrl = "/tplus/api/v2/inventoryUnit/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  采购订单创建
     *
    */
    public static function purchaseOrderCreate(){
        $apiUrl = "/tplus/api/v2/purchaseOrder/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  进货单创建
     *
     *
    */
    public static function purchaseArrivalCreate(){
        $apiUrl = "/tplus/api/v2/purchaseArrival/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  进货单删除
     *
     */
    public static function PurchaseArrivalOpenApiDelete(){
        $apiUrl = "/tplus/api/v2/PurchaseArrivalOpenApi/Delete";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *
     *  根据条件查询 进货单
     *
     */
    public static function PurchaseArrivalOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/PurchaseArrivalOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *
     *  销售订单新增
     *
     */
    public static function saleOrderCreate(){
        $apiUrl = "/tplus/api/v2/saleOrder/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  销售订单查询
     *
     *
    */
    public static function SaleOrderOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/SaleOrderOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *   销货单新建
     *
     *
    */
    public static function saleDeliveryCreate(){
        $apiUrl = "/tplus/api/v2/saleDelivery/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *   销货单查询
     *
     *
     */
    public static function SaleDeliveryOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/SaleDeliveryOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    /**
     *   采购入库 新增
     *
     */
    public static function purchaseReceiveCreate(){
        $apiUrl = "/tplus/api/v2/purchaseReceive/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *   采购入库 查询
     *
     */
    public static function PurchaseReceiveOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/PurchaseReceiveOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *   销售出库单 新增
     *
     */
    public static function saleDispatchCreate(){
        $apiUrl = "/tplus/api/v2/saleDispatch/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *   销售出库单 查询
     *
     */
    public static function SaleDispatchOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/SaleDispatchOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  自定义档案 查询
     *
    */
    public static function userDefineArchiveAPIQuery(){
        $apiUrl = "/tplus/api/v2/userDefineArchiveAPI/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  结算方式-新增
     *
    */
    public static function BankAccountCallBack(){
        $apiUrl = "/tplus/api/v2/BankAccount/CallBack";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  结算方式查询
    */
    public static function SettleStyleQuery(){
        $apiUrl = "/tplus/api/v2/SettleStyle/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  账号-新增
     *
     */
    public static function BankAccountCreate(){
        $apiUrl = "/tplus/api/v2/BankAccount/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    /***
     *  费用档案新增
     *
    */
    public static function ExpenseCreate(){
        $apiUrl = "/tplus/api/v2/Expense/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    public static function ExpenseUpdate(){
        $apiUrl = "/tplus/api/v2/Expense/Update";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    public static function ExpenseDelete(){
        $apiUrl = "/tplus/api/v2/Expense/Delete";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    public static function ExpenseQuery(){
        $apiUrl = "/tplus/api/v2/Expense/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     * 费用单列表查询
     *
    */
    public static function expenseVoucherFindVoucherList(){
        $apiUrl = "/tplus/api/v2/expenseVoucher/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    /**
     *  账号档案查询
     *
    */
    public static function BankAccountQuery(){
        $apiUrl = "/tplus/api/v2/BankAccount/Query";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *  采购发票列表
     *  采购发票详情
     *
     */
    public static function PurchaseInvoiceOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/PurchaseInvoiceOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    public static function PurchaseInvoiceOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/PurchaseInvoiceOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    /**
     *
     *  销售发票列表
     *
    */
    public static function SaleInvoiceOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/SaleInvoiceOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    //其他入库单列表
    public static function OtherReceiveOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/OtherReceiveOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //其他入库单查询
    public static function OtherReceiveOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/OtherReceiveOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    //其他出库单列表
    public static function OtherDispatchOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/OtherDispatchOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //其他出库单详情
    public static function OtherDispatchOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/OtherDispatchOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //入库调整单列表
    public static function AdjustCostInOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/AdjustCostInOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //入库调整单档案
    public static function AdjustCostInOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/AdjustCostInOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //出库调整单列表
    public static function AdjustCostOutOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/AdjustCostOutOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //出库调整单档案
    public static function AdjustCostOutOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/AdjustCostOutOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //调拨单新增
    public static function TransVoucherOpenApiCreate(){
        $apiUrl = "/tplus/api/v2/TransVoucherOpenApi/Create";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //调拨单删除
    public static function TransVoucherOpenApiDelete(){
        $apiUrl = "/tplus/api/v2/TransVoucherOpenApi/Delete";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //调拨单列表
    public static function TransVoucherOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/TransVoucherOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //调拨单档案
    public static function TransVoucherOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/TransVoucherOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //收款单列表
    public static function ReceiveVoucherOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/ReceiveVoucherOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //收款单档案/付款单档案
    public static function ReceivePaymentVoucherOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/ReceivePaymentVoucherOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    // 新增 收款单/付款单
    public function ReceivePaymentVoucherOpenApiNewCreate(){
        $apiUrl = "/tplus/api/v2/ReceivePaymentVoucherOpenApi/NewCreate";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //付款单列表
    public static function PaymentVoucherOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/PaymentVoucherOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //盘点单列表
    public static function CheckVoucherOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/CheckVoucherOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //盘点单档案
    public static function CheckVoucherOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/CheckVoucherOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //预收冲应收列表
//    public static function StrikeBalanceAdvReceiveArOpenApiFindVoucherList(){
//        $apiUrl = "/tplus/api/v2/StrikeBalanceAdvReceiveArOpenApi/FindVoucherList";
//        $apiRequestType = "post";
//        return ['url' => $apiUrl,'type' => $apiRequestType];
//    }
    //预收冲应收档案
    public static function StrikeBalanceAdvReceiveArOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/StrikeBalanceAdvReceiveArOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //预收冲应收列表  ||  预付冲应付列表  || 预收冲应收列表
    public static function StrikeBalanceAdvReceiveArOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/StrikeBalanceAdvReceiveArOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //预付冲应付列表
//    public static function StrikeBalanceAdvPaymentApOpenApiFindVoucherList(){
//        $apiUrl = "/tplus/api/v2/StrikeBalanceAdvPaymentApOpenApi/FindVoucherList";
//        $apiRequestType = "post";
//        return ['url' => $apiUrl,'type' => $apiRequestType];
//    }
    //预付冲应付dto
    public static function StrikeBalanceAdvPaymentApOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/StrikeBalanceAdvPaymentApOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }

    //应收冲应收列表
    public static function StrikeBalanceArArOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/StrikeBalanceArArOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //应收冲应收档案
    public static function StrikeBalanceArArOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/StrikeBalanceArArOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //应付冲应付列表
    public static function StrikeBalanceApApOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/StrikeBalanceApApOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //应付冲应付档案
    public static function StrikeBalanceApApOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/StrikeBalanceApApOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //应收冲应付列表
    public static function StrikeBalanceArApOpenApiFindVoucherList(){
        $apiUrl = "/tplus/api/v2/StrikeBalanceArApOpenApi/FindVoucherList";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //应收冲应付档案
    public static function StrikeBalanceArApOpenApiGetVoucherDTO(){
        $apiUrl = "/tplus/api/v2/StrikeBalanceArApOpenApi/GetVoucherDTO";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
    //报表通用查询接口
    public static function reportQueryGetReportData(){
        $apiUrl = "/tplus/api/v2/reportQuery/GetReportData";
        $apiRequestType = "post";
        return ['url' => $apiUrl,'type' => $apiRequestType];
    }
}
